package org.objective.base;

/**
 *
 * @author gus
 */
public class LazyFieldCollection<T extends BaseDomainObject, TOwner extends BaseObject> extends BaseFieldCollection<T, TOwner>
{
    public LazyFieldCollection(TOwner owner, Construction<T> ctor)
    {
        super(owner, ctor);
    }
    
    @Override
    protected T constructNew(Construction<T> constructionCallback) throws Exception
    {
        return getOwner().storage.createObject(constructionCallback);
    }
}
